{% extends "layout.html" %}
{% load static %}
{% block css %}
<script src="{% static 'plugins/axios/1.6.7/axios.min.js' %}"></script>
{% endblock %}
{% block content %}
<div class="layui-padding-5">
  <fieldset class="layui-elem-field layui-field-title">
    <legend>{{title}}</legend>
  </fieldset>
  <form class="layui-form" action="/upload/form/" method="post" novalidate autocomplete="off" enctype="multipart/form-data">
    {% csrf_token %}
      {% for field in form %}
      <div class="layui-form-item">
        <label class="layui-form-label">{{field.label}}</label>
        <div class="layui-input-block">
          {{field}}
          <span class="layui-font-red">
            {{field.errors.0}}
          </span>
        </div>
      </div>
      {% endfor %}
    <div class="layui-input-block">
      <button type="submit" class="layui-btn" lay-submit >立即提交</button>
    </div>
  </form>
</div>
{% endblock %}


